<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- https://www.nowcoder.com/test/question/done?tid=53130007&qid=55086#summary -->
    <script>
        var F = function () { };
        Object.prototype.a = function () { };
        Function.prototype.b = function () { };
        var f = new F();

        let res1 = f.__proto__ === F.prototype;
        let res2 = F.__proto__ === Function.prototype;
        let res3 = F.prototype.__proto__ === Object.prototype;
        let res4 = Function.prototype.__proto__ === Object.prototype;
        let res5 = f.__proto__.__proto__ === Object.prototype;
        console.log('res1', res1);
        console.log('res2', res2);
        console.log('res3', res3);
        console.log('res4', res4);
        console.log('res5', res5);//true,证明f能取到a
        console.log('f.a',f.a);
        console.log('f.b',f.b);
        
    </script>

</body>

</html>